package com.yxq.mdt.app.modules.personal.presenter;

import com.yxq.mdt.app.base.BasePresenter;
import com.yxq.mdt.app.modules.personal.bean.PrivateSetResultBean;
import com.yxq.mdt.app.modules.personal.model.SettingModel;
import com.yxq.mdt.app.net.ApiModel;

public class SettingPresenter extends BasePresenter<ISettingContract.View, SettingModel> implements ISettingContract.Presenter {

    public SettingPresenter(ISettingContract.View rootView, SettingModel model) {
        super(rootView, model);
    }

    @Override
    public void updateGaUserExtShowInfo(String showInfo) {
        mBaseModel.updateGaUserExtShowInfo(showInfo, new ApiModel.CommonCallback<PrivateSetResultBean>() {
            @Override
            public void onSuccess(PrivateSetResultBean data) {
                mRootView.onLoadSuccess(data);
            }

            @Override
            public void onError(String errMsg) {
                mRootView.onLoadFailed(errMsg);
            }
        });
    }

}
